<script type="text/javascript">
function checkPost(){
	if($("#username").val().length <1){
		alert("账户不能为空！");
		return false;
	}
}

</script>
<!-- Start of first page -->
<div data-role="page">

	<div data-role="header" data-theme="b">
		<h1>账户管理</h1>
		<a href="#" data-icon="back" onclick="history.go(-1);">返回</a>
		<?php echo CHtml::link("主页",array("site/index"),array("data-icon"=>"home"))?>
	</div>
	<!-- /header -->
	<div data-role="footer">
		<div data-role="navbar" data-theme="e" >
			<ul>	
				<li><?php echo CHtml::link("账户登录",array("site/login"),array("data-icon"=>"star","data-theme"=>"b"))?></li>			
				<li><?php echo CHtml::link("账户注册",array("site/register"),array("data-icon"=>"plus","data-theme"=>"b"))?></li>
				<li><?php echo CHtml::link("密码找回",array("site/findpass"),array("data-icon"=>"search","data-theme"=>"e"))?></li>
			</ul>
		</div><!-- /navbar -->
	</div><!-- /footer -->
	<div data-role="content">

		
		<div class="ui-body ui-body-e">
			<h3>注意:</h3>
			<?php if (empty($info)):?>
			<p>
				请输入您的用户名，此功能每天限制1次！
			</p>
			<?php endif?>
			<?php if (!empty($info)):?>
			<p>
				<span style='color: green'><?php echo $info;?></span>
			</p>
			<?php endif?>
			<?php if (!empty($error)):?>
					<p>
						<span style='color: #c00'><?php echo $error;?></span>
					</p>
			<?php endif?>
		</div>
			

		<?php if(empty($info)):?>
		<?php echo CHtml::form('','get',array("onsubmit"=>"return checkPost();","data-ajax"=>"false")); ?>
			<div data-role="fieldcontain"><label for="name">用户名： </label><input type="text" name="username" value=""  /></div>
			<input type='submit' data-theme='b' value='申请找回' data-inline='true' />
		<?php echo CHtml::endForm(); ?>
		<?php endif?>

	</div>
	<!-- /content -->

	<?php $this->renderPartial("//site/footer")?>
	<!-- /footer -->
</div>
<!-- /page -->
